package com.example.liu_test.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.sql.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘旺
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "User对象", description = "")
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {




    private static final long serialVersionUID = 1L;

    @TableId("user_id")
    private Integer userId;

    @TableField("user_name")
    private String userName;

    @TableField("user_role")
    private String userRole;

    @TableField("dept_id")
    private Integer deptId;

    @TableField("user_dept")
    private String userDept;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String updateTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_name",fill = FieldFill.UPDATE)
    private String updateName;

    /**
     * 创建人
     */
    @TableField(value = "create_name",fill = FieldFill.INSERT)
    private String createName;

    @ApiModelProperty(value="删除标记", name="dr")
    private String dr;


}
